package com.an.blog.web.controller;

import cn.dev33.satoken.annotation.SaIgnore;
import com.an.blog.service.IBlogAlbumService;
import com.an.blog.web.domain.vo.BlogAlbumWebVo;
import com.an.common.core.domain.PageQuery;
import com.an.common.core.page.TableDataInfo;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 博客相册web控制器
 *
 * @author: Ann
 * @createDate: 2023/06/26 10:11:02
 * @version: 1.0.0
 */
@RestController
@RequestMapping("/blog-web/album")
@RequiredArgsConstructor
public class BlogAlbumWebController {

    private final IBlogAlbumService albumService;

    /**
     * 查询网站相册网站列表
     *
     * @param pageQuery 页面查询
     * @return {@link TableDataInfo }<{@link BlogAlbumWebVo }>
     * @author: A
     * @createDate: 2023/06/26 10:35:08
     * @version: 1.0.0
     */
    @SaIgnore
    @GetMapping("/list")
    public TableDataInfo<BlogAlbumWebVo> queryWebAlbumWebList(PageQuery pageQuery) {
        return albumService.queryWebPageList(pageQuery);
    }
}
